package com.coderman.common.vo.business;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhangyukang
 * @since 2020/4/5 09:53
 * @version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ConsumerVO implements Serializable {

	private static final long serialVersionUID = -8352376296291210199L;

	private Long id;

	@NotBlank(message = "物资发放地点不能为空")
	private String name;

	@NotBlank(message = "省市县不能为空")
	private String address;

	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date modifiedTime;

	@NotBlank(message = "联系人电话不能为空")
	private String phone;

	@NotNull(message = "排序号不能为空")
	private Integer sort;

	@NotBlank(message = "联系人姓名不能为空")
	private String contact;

}
